From: Debian Science Maintainers Date: Sat, 2 Mar 2019 14:59:35 +0000 (+0000) Subject: Stop using no-longer-existing chisqprob X-Git-Tag: archive/raspbian/0.11.1-2+rpi1~2^2^2~10 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi//%22https:/bugzilla.%22/%22http:/www.example.com/cgi/%22https:/bugzilla.%22?a=commitdiff_plain;h=e4fd15df9b86c33620acc7d4c27ad4c0cc108edd;p=statsmodels.git Stop using no-longer-existing chisqprob Needed for compatibility with scipy >= 1.0 Author: Kevin "bashtage" Sheppard Origin: upstream https://github.com/statsmodels/statsmodels/commit/575fc69257171e1dbc86461b510eb818a63c5fab Forwarded: not-needed Gbp-Pq: Name chisqprob.patch --- diff --git a/statsmodels/discrete/discrete_model.py b/statsmodels/discrete/discrete_model.py index 7773c68..db29bfb 100644 --- a/statsmodels/discrete/discrete_model.py +++ b/statsmodels/discrete/discrete_model.py @@ -2402,7 +2402,7 @@ class DiscreteResults(base.LikelihoodModelResults): @cache_readonly def llr_pvalue(self): - return stats.chisqprob(self.llr, self.df_model) + return stats.distributions.chi2.sf(self.llr, self.df_model) @cache_readonly def llnull(self):